package com.liruo.learn.spring.mvc.valid;

import javax.validation.Validation;
import javax.validation.Validator;
import org.hibernate.validator.HibernateValidator;

/**
 * @Author:liruo
 * @Date:2023-06-10-20:45:51
 * @Desc
 */
public class ValidatorUtil {
    static Validator validator = Validation.byProvider(HibernateValidator.class)
            .configure()
            .buildValidatorFactory()
            .getValidator();
}
